﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CarInsurance
/// </summary>
/// 
namespace CE.CarInsurance
{
    public class CarInsurance
    {
        public CarInsurance()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        private Int32 _carinsid;
        private Int64 _civariableid;
        private Int64 _providercompanyid;
        private Int32 _cxcovertypeid;
        private string _policyname;
        private string _typeofplan;
        private float _annualpremium;
        private float _proposerexcess;
        private bool _ispersonalaccident;
        private float _policyholderamt;
        private float _eachpassengeramt;
        private float _personalaccaccumulated;
        private bool _ismedicalexpense;
        private float _medicalexpense;
        private bool _iscashallowance;
        private float _cashallowance;
        private Int32 _maxcashallowancedays;
        private bool _iscarreplacement;
        private Int32 _maxcarreplacementdays;
        private bool _ispersonnaleffectsloss;
        private float _personnaleffectsloss;
        private bool _isncdprotection;
        private string _moreinfo;
        private bool _status;


        private Int64 _ninfo1; //Policy Id
        private Int64 _ninfo2; //Promotion Id
        private Int64 _ninfo3; //Policy Info Id

       
        public int CarInsId
        {
            get { return _carinsid; }
            set { _carinsid = value; }
        }

        public Int64 CIVariableId
        {
            get { return _civariableid; }
            set { _civariableid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public Int32 CXCoverTypeId
        {
            get { return _cxcovertypeid; }
            set { _cxcovertypeid = value; }
        }

        public string PolicyName
        {
            get { return _policyname; }
            set { _policyname = value; }
        }

        public string TypeofPlan
        {
            get { return _typeofplan; }
            set { _typeofplan = value; }
        }

        public float AnnualPremium
        {
            get { return _annualpremium; }
            set { _annualpremium = value; }
        }

        public float ProposerExcess
        {
            get { return _proposerexcess; }
            set { _proposerexcess = value; }
        }
         
        public bool isPersonalAccident
        {
            get { return _ispersonalaccident; }
            set { _ispersonalaccident = value; }
        }

        public float PolicyHolderAmt
        {
            get { return _policyholderamt; }
            set { _policyholderamt = value; }
        }
                
        public float PersonalAccAccumulated
        {
            get { return _personalaccaccumulated; }
            set { _personalaccaccumulated = value; }
        }
        
        public float EachPassengerAmt
        {
            get { return _eachpassengeramt; }
            set { _eachpassengeramt = value; }
        }
                    
        public bool isMedicalExpense
        {
            get { return _ismedicalexpense; }
        set { _ismedicalexpense = value; }
        }

        public float MedicalExpense
        {
            get { return _medicalexpense; }
            set { _medicalexpense = value; }
        }

        public bool isCashAllowance
        {
            get { return _iscashallowance; }
            set { _iscashallowance = value; }
        }
        public float CashAllowance
        {
            get { return _cashallowance; }
            set { _cashallowance = value; }
        }

        public Int32 MaxCashAllowanceDays
        {
            get { return _maxcashallowancedays; }
            set { _maxcashallowancedays = value; }
        }

        public bool IsCarReplacement
        {
            get { return _iscarreplacement; }
            set { _iscarreplacement = value; }
        }
        
        public Int32 MaxCarReplacementDays
        {
            get { return _maxcarreplacementdays; }
            set { _maxcarreplacementdays = value; }
        }

        public bool isPersonnalEffectsLoss
        {
            get { return _ispersonnaleffectsloss; }
            set { _ispersonnaleffectsloss = value; }
        }

        
        public float PersonnalEffectLoss
        {
            get { return _personnaleffectsloss; }
            set { _personnaleffectsloss = value; }
        }
   
        public bool IsNCDProtection
        {
            get { return _isncdprotection; }
            set { _isncdprotection = value; }
        }
   
        public string MoreInfo
        {
            get { return _moreinfo; }
            set { _moreinfo = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }


        public Int64 Ninfo1
        {
            get { return _ninfo1; }
            set { _ninfo1 = value; }
        }

        public Int64 Ninfo2
        {
            get { return _ninfo2; }
            set { _ninfo2 = value; }
        }
        
        public Int64 Ninfo3
        {
            get { return _ninfo3; }
            set { _ninfo3 = value; }
        }

        public void ClearFields()
        { 
            _carinsid = 0;
            _civariableid = 0;
            _providercompanyid = 0;
            _cxcovertypeid = 0;
            _policyname = "";
            _typeofplan = "";
            _annualpremium = 0;
            _proposerexcess = 0;
            _policyholderamt = 0;
            _eachpassengeramt = 0;
            _medicalexpense = 0;
            _cashallowance = 0;
            _maxcashallowancedays = 0;
            _iscarreplacement = true;
            _maxcarreplacementdays = 0;
            _isncdprotection = true;
            _moreinfo = "";
            _status = true;

            _ninfo1 = 0;
            _ninfo2 = 0;
            _ninfo3 = 0;
        }

    }
}
